
/**
 * freedo 控件三维球BS端封装
 */


function FreedoOcx(opts) {
    this.ocxid = opts && opts.ocxid || "ctrl";
};


/**
 * 初始化球体
 */
FreedoOcx.prototype.init = function (inited) {
    var ocx = this.ocx = document.getElementById(this.ocxid);
    setTimeout(function () {
        ocx.InitFromSceneFile("scene.xml");
        ocx.Render();
        inited && inited();
    }, 20);
};

FreedoOcx.prototype.getToolsManger = function () {
    return this.ocx && this.ocx.ToolsManager;
}
FreedoOcx.prototype.fly = function () {
    return this.ocx && this.ocx.SceneView;
}

module.exports = FreedoOcx;
